package org.fanximall.erp.framework.mybatis;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
import java.util.List;

/**
 * @author :  william
 * @version :  V1.0  created in 2024/4/23
 */
public class MySqlInjector extends DefaultSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass, TableInfo tableInfo) {
        List<AbstractMethod> abstractMethodList = super.getMethodList(mapperClass, tableInfo);
        abstractMethodList.add(new BatchInsert());
        return abstractMethodList;
    }
}
